import ItemDailyConsumption from '@/components/finance/item_consumption/ItemDailyConsumption'
import ItemPlatformConsumption from '@/components/finance/item_consumption/ItemPlatformConsumption'
import ItemDeviceConsumption from '@/components/finance/item_consumption/ItemDeviceConsumption'
import ItemPlanConsumption from '@/components/finance/item_consumption/ItemPlanConsumption'
import ItemMonthReport from '@/components/finance/item_consumption/ItemMonthReport'
import ItemPlatformMonthReport from '@/components/finance/item_consumption/ItemPlatformMonthReport'
import ItemMonthConsumptionLine from '@/components/finance/item_consumption/ItemMonthConsumptionLine'
import ItemPlatformMonthConsumptionLine from '@/components/finance/item_consumption/ItemPlatformMonthConsumptionLine'
import ItemChannelDailyConsumption from '@/components/finance/item_consumption/ItemChannelDailyConsumption'
import ItemChannelMonthConsumption from '@/components/finance/item_consumption/ItemChannelMonthConsumption'

const routers = [
  {path: 'item-consumption', component: ItemDailyConsumption},
  {path: 'item-consumption/platform', component: ItemPlatformConsumption},
  {path: 'item-consumption/device', component: ItemDeviceConsumption},
  {path: 'item-consumption/plan', component: ItemPlanConsumption},
  {path: 'item-consumption/month-reports', component: ItemMonthReport},
  {path: 'item-consumption/platform-month-reports', component: ItemPlatformMonthReport},
  {path: 'item-consumption/item-month-consumption-line', component: ItemMonthConsumptionLine},
  {path: 'item-consumption/item-platform-month-consumption-line', component: ItemPlatformMonthConsumptionLine},
  {path: 'item-consumption/item-channel-daily-consumption', component: ItemChannelDailyConsumption},
  {path: 'item-consumption/item-channel-month-consumption', component: ItemChannelMonthConsumption}
]

const menu = {
  title: '项目消费报表',
  icon: 'dashcube',
  flag: false,
  sons: [
    {
      title: '项目日总分析',
      icon: 'user-circle',
      path: '/finance/item-consumption',
      perm: 'analysisDailyConsumption:item',
      flag: false
    },
    {
      title: '项目平台日分析',
      icon: 'user-circle',
      path: '/finance/item-consumption/platform',
      perm: 'analysisDailyConsumption:itemPlatform',
      flag: false
    },
    {
      title: '项目设备日分析',
      icon: 'user-circle',
      path: '/finance/item-consumption/device',
      perm: 'analysisDailyConsumption:itemDevice',
      flag: false
    },
    {
      title: '项目计划日分析',
      icon: 'user-circle',
      path: '/finance/item-consumption/plan',
      perm: 'analysisDailyConsumption:itemPlan',
      flag: false
    },
    {
      title: '项目消费月报',
      icon: 'comments',
      path: '/finance/item-consumption/month-reports',
      perm: 'analysisItemPerformance:month',
      flag: false
    },
    {
      title: '项目平台消费月报',
      icon: 'comments',
      path: '/finance/item-consumption/platform-month-reports',
      perm: 'analysisItemPlatformPerformance:month',
      flag: false
    }, {
      title: '项目渠道消费日报',
      icon: 'user-circle',
      path: '/finance/item-consumption/item-channel-daily-consumption',
      perm: 'analysisChannelPerformance:daily',
      flag: false
    }, {
      title: '项目渠道消费月报',
      icon: 'user-circle',
      path: '/finance/item-consumption/item-channel-month-consumption',
      perm: 'analysisChannelMonthPerformance:month',
      flag: false
    }
  ]
}

export default {
  routers,
  menu
}
